//findByBackLogList

import { userRequest } from '@/utils/HttpRequest';

//wallet Log
export async function findByWalletPageLogList(params?: any) {
  //SwaggerResources

  return userRequest.getList<API.LoginLog>('wallet/findByPageLogList', params);
}

//wallet Log
export async function findByWalletBackLogList(params?: any) {
  //SwaggerResources

  return userRequest.getList<API.LoginLog>('wallet/findByBackLogList', params);
}
export async function findByWalletBackLogList1(params?: any) {
  //SwaggerResources

  return userRequest.getList<API.LoginLog>('wallet/findByPageList', params);
}

//wallet Log
export async function findByWalletBackPageWithdrawal(params?: any) {
  //SwaggerResources

  return userRequest.getList<API.LoginLog>(
    'wallet/findByPageWithdrawalList',
    params,
  );
}

//wallet Log
export async function findByWalletPageList(params?: any) {
  //SwaggerResources

  return userRequest.getList<API.LoginLog>('wallet/findByBackLogList', params);
}

//wallet Log
export async function findByBackIntegralLogList(params?: any) {
  //SwaggerResources

  return userRequest.getList<API.LoginLog>(
    'wallet/findByBackIntegralLogList',
    params,
  );
}

//wallet Log
export async function findByBackIntegralList(params?: any) {
  //SwaggerResources

  return userRequest.getList<API.LoginLog>('integral/findByList', params);
}

export async function withdrawalStatus(id?: number, status?: number) {
  return userRequest.postParam<any>('wallet/withdrawalStatus', {
    id: id,
    status: status,
  });
}

//getWithdrawalInfo
export async function getWithdrawalInfo(id?: number) {
  return userRequest.get<any>('wallet/getWithdrawalInfo', { id: id });
}

export async function auditWithdrawalInfo(params: any) {
  return userRequest.get<any>('wallet/auditWithdrawalInfo', params);
}

export async function findByAddressBackLogList(params?: any) {
  //SwaggerResources

  return userRequest.getList<API.LoginLog>('address/findByPageList', {
    ...params,
  });
}
